

function submitQuiz()
{
	var answersCorrect = 0;
	var q1 = document.forms.quiz1.question1;		
	if( q1[ 1 ].checked == true )
	{
		answersCorrect = answersCorrect + 1;
	}
	var q2 = document.forms.quiz1.question2;
	if( q2[ 2 ].checked == true )
	{
		answersCorrect = answersCorrect + 1;
	}
	var q3 = document.forms.quiz1.question3;
	if( q3[ 4 ].checked == true )
	{
		answersCorrect = answersCorrect + 1;
	}		
		
	if(answersCorrect >= 2)
	{		
		alert( "You passed!" );
	}
	else
	{
		alert( "You failed!" );
	}	
	
	
	
}